import http from "./index";
//订单概况
export const getAllOrder = async () => {
  return http({
    url: "/order/overview",
    method: "POST"
  });
}

//分页查询全部的方法
export const getListOrder = async (data) => {
  return http({
    url: "/order/alllist",
    data,
    method: "POST"
  });
}

//查询状态的方法
export const getStatusOrder = async (data) => {
  return http({
    url: "/order/status",
    data,
    method: "POST"
  });
}

//针对查询的方法
export const getSelectOrder = async (data) => {
  return http({
    url: "/order/select",
    data,
    method: "POST"
  });
}

//针对查询订单详情的方法
export const getSingleOrder = async (data) => {
  return http({
    url: "/order/orderMsg",
    data,
    method: "POST"
  });
}

//发货接口
export const getSendOrder = async (data) => {
  return http({
    url: "/order/send",
    data,
    method: "POST"
  });
}

//退款查询全部分页
export const getRefundOrder = async (data) => {
  return http({
    url: "/rights/alllist",
    data,
    method: "POST"
  });
}

//退款条件查询
export const getRefundSelectOrder = async (data) => {
  return http({
    url: "/rights/select",
    data,
    method: "POST"
  });
}

//退款状态查询
export const getRefundStatusOrder = async (data) => {
  return http({
    url: "/rights/status",
    data,
    method: "POST"
  });
}